.poll-message {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
  border: 1px solid #e9ecef;
  max-width: 400px;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.poll-creator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-name {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.poll-time {
  font-size: 12px;
  color: #6c757d;
}

.poll-question {
  margin-bottom: 16px;
}

.poll-question h4 {
  margin: 0 0 8px 0;
  color: #212529;
  font-size: 16px;
  font-weight: 600;
}

.poll-expiry {
  font-size: 12px;
  color: #dc3545;
  font-weight: 500;
}

.poll-options {
  margin-bottom: 16px;
}

.poll-option {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.poll-option:hover:not(.expired) {
  border-color: #007bff;
  background: #f8f9ff;
}

.poll-option.voted {
  border-color: #28a745;
  background: #f8fff9;
}

.poll-option.expired {
  cursor: not-allowed;
  opacity: 0.7;
}

.poll-option.expired:hover {
  border-color: #e9ecef;
  background: white;
}

.option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.option-text {
  font-size: 14px;
  color: #212529;
  font-weight: 500;
  flex: 1;
}

.option-stats {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
}

.vote-count {
  font-weight: 500;
}

.vote-percentage {
  font-weight: 600;
  color: #007bff;
}

.vote-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.vote-progress {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.poll-option.voted .vote-progress {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.poll-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 12px;
}

.poll-info {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
}

.poll-info span {
  margin-right: 8px;
}

.user-votes {
  font-size: 12px;
  color: #28a745;
  font-weight: 500;
  background: #f8fff9;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #d4edda;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .poll-message {
    max-width: 100%;
    margin: 4px 0;
    padding: 12px;
  }

  .poll-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .poll-time {
    align-self: flex-end;
  }

  .option-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .option-stats {
    align-self: flex-end;
  }
}
